<div ng-controller="PreorderCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="">{{'预约'| translate}}</a></li>
        <li class="active">
            预约单
             <!-- <a href="#/preorder/info" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a> -->
        </li>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'预约序号'|translate}}</th>
                <th>{{'顾客微信'|translate}}</th>

                <th>{{'预约项目'|translate}}</th>
                <th>{{'周期模板'|translate}}</th>
                <!-- <th>{{'时间编号'|translate}}</th> -->

                <th>{{'created_at'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="(ke,list) in preorders">
                <td>{{list.order_seq}}</td>
                <td>
                    <wxinfo ng-model="list.member_id" type="1" ></wxinfo>
                </td>

                <td><resitem-list ng-model="list.res_item_id" stype="1"></resitem-list></td>
                <td><res-template-list ng-model="list.periods_id" stype="1" ></res-template-list></td>
                <!-- <td>{{list.timeslots_id}}</td> -->

                <td>{{list.created_at}}</td>
                <td>
                    <!-- <edit-template tmpid="list.template_id"></edit-template> -->
                    <a href="#/preorder/info?pre_order_id={{list.pre_order_id}}" class="sui-btn btn-primary">{{'详情'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="storeTotal" get-data="getlist(pageNo)"></pager>
</div>